package com.putong35.common.app.data;

import java.util.HashMap;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import retrofit2.http.Url;

public interface HttpCommonApi {

    @GET("app/getSmsCode")
    Call<String> getSmsCode(@Query("type") String type, @Query("mobile") String mobile);

    @GET
    Call<ResponseBody> httpGetList(@Url String url, @QueryMap HashMap<String, String> map);

    @GET
    Call<ResponseBody> httpGet(@Url String url, @QueryMap HashMap<String, String> map);

    @POST
    Call<ResponseBody> httpPostList(@Url String url, @Body HashMap<String, String> map);

}
